package example;

import java.net.MalformedURLException;
import java.rmi.RemoteException;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;

import cn.b2m.eucp.sdkhttp.SDKClientProxy;

import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.ServiceException;


public class test {

	
	public static void main(String[] args) throws ServiceException, MalformedURLException, RemoteException{
//		SDKClientProxy a=new SDKClientProxy();
//		System.out.println(a.registEx("7SDK-EMY-6688-JCTLM","577393","993148"));
		
		
		
		
		
		Service service=new Service();
		Call call=(Call)service.createCall();
		call.setTargetEndpointAddress(new java.net.URL("http://219.239.91.84:8080/sdk/SDKService?wsdl")); 
		call.setOperationName(new QName("http://sdkhttp.eucp.b2m.cn/","registEx"));   
		call.setReturnType(XMLType.XSD_INT); //设置返回值类型
		call.addParameter("arg0",XMLType.XSD_STRING,ParameterMode.IN);
		call.addParameter("arg1",XMLType.XSD_STRING,ParameterMode.IN);
		call.addParameter("arg2",XMLType.XSD_STRING,ParameterMode.IN);
        java.lang.Object resp = call.invoke(new java.lang.Object[] {"7SDK-EMY-6688-JCTLM","577393","993148"});
        System.out.println(resp);
	}
		

}
